package co.com.javeriana.aes.oms.ejb.orders.service;

import co.com.javeriana.aes.oms.common.entity.Campaign;
import co.com.javeriana.aes.oms.common.entity.Customer;
import co.com.javeriana.aes.oms.common.entity.Items;
import co.com.javeriana.aes.oms.common.entity.Orders;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Jonathan Fernandez <jonathan.fvargas@gmail.com>
 */
@Local
public interface OrdersServiceBeanLocal {

    public Orders findOrderByID(int orderId) throws Exception;

    public Customer getCustomer(int customerID) throws Exception;

    public Orders getOrder(int orderId) throws Exception;

    public Integer createOrder(Orders orders, List<Items> items) throws Exception;

    public List<Campaign> getCampaigns();

    public void updateOrder(Orders order) throws Exception;

    public List<Orders> findOrderByCustomerId(int customerId) throws Exception;
    
    public List<Integer> getTopFiveProducts(int idProduct)throws Exception;
    
    public List<Integer> getTopProducts()throws Exception;
    
    public List<Integer> getTopOpenOrders()throws Exception;
  
    
}
